package org.issaclu.springbootmybatis.role.service;

import org.issaclu.springbootmybatis.role.dto.RoleInfo;
import org.issaclu.springbootmybatis.role.mapper.RoleInfoMapper;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleInfoService {


    private final RoleInfoMapper roleInfoMapper;

    public RoleInfoService(RoleInfoMapper roleInfoMapper) {
        this.roleInfoMapper = roleInfoMapper;
    }


    public List<RoleInfo> query(RoleInfo roleInfo) {
        return this.roleInfoMapper.query(roleInfo.getId(), roleInfo.getRoleName(), roleInfo);
    }
}
